<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .img_preview img{width: 200px;}
    </style>
</head>
<body>
    <input type="file" id="img_select">
    <div class="img_preview"></div>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        $("#img_select").on('change',function (e) {
            var file = e.target.files[0];
            if (!file.type.match('image/*')) {
                return false;
            }
            var reader = new FileReader();
            reader.readAsDataURL(file);
            reader.onload = function (ev) {
                var img = '<img src="'+ev.target.result+'"/>';
                $('.img_preview').empty().append(img);
            }
        })
    </script>

</body>
</html>